﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Battle
{
    public static class BuffHandlerMgr
    {
        private static Dictionary<string, IBuffHandler> dicBuffHandler;

        static BuffHandlerMgr()
        {
            dicBuffHandler = new Dictionary<string, IBuffHandler>()
            {
                { BuffNameConst.Dot,new Buff_Dot(BuffNameConst.Dot)},
                { BuffNameConst.MoveSpeed,new Buff_MoveSpeed(BuffNameConst.MoveSpeed)},
            };
        }

        public static IBuffHandler GetBuffHandler(string buffName)
        {
            if (dicBuffHandler.ContainsKey(buffName))
                return dicBuffHandler[buffName];
            else
                return null;
        }
    }
}
